4cd37bd2574874cf88ed7674004f3a71da350e93,framework/src/main/java/org/apache/felix/framework/URLHandlersBundleURLConnection.java,URLHandlersBundleURLConnection,URLHandlersBundleURLConnection,#URL#Felix#,49

Before Change


            .hasInputStream(m_classPathIdx, url.getPath()))
        {
            URL newurl = ((BundleWiringImpl)
                m_targetRevision.getWiring()).getResourceByDelegation(url.getPath());
            if (newurl == null)
            {
                throw new IOException("Resource does not exist: " + url);

After Change


        if (!((BundleRevisionImpl) m_targetRevision)
            .hasInputStream(m_classPathIdx, url.getPath()))
        {
            BundleWiring wiring = m_targetRevision.getWiring();
            ClassLoader cl = (wiring != null) ? wiring.getClassLoader() : null;
            URL newurl = (cl != null) ? cl.getResource(url.getPath()) : null;
            if (newurl == null)
            {
                throw new IOException("Resource does not exist: " + url);